shop sales_export
Command Title
/shop sales_export
Description
This command allows you to export sales data for a specific item within a specified date range.. The exported data will include information such as the item ID, item name, quantity sold, total revenue generated, and the date and time of each sale.
Usage
/shop sales_export [start_date] [end_date] [item_id]
Parameters
Optional Parameters:
[start_date]
: The start date of the sales period in the format ofyyyy/mm/dd
(default is today). The time will default to 00:00 on the specified date.[end_date]
: The end date of the sales period in the format ofyyyy/mm/dd
(default is today). The time will default to 24:00 on the specified date.[item_id]
: The ID of the item to export. It can be found in the item message when you view the item details.
Examples
-
Example 1: To export today's sales report:
/shop sales_export
-
Example 2: To export sales data for item with ID 123456 from January 1st, 2024 to January 31st, 2024:
/shop sales_export start_date:2024-01-01 end_date:2024-01-31 item_id:123
Notes
- The exported data will be saved as a CSV file.
- Only administrators can use this command.
- The item ID must be a valid, existing item in the system.
- The start date must be earlier than or equal to the end date.
FAQs
-
Q: Who can use the
/shop sales_export
command?A: Only administrators can use this command.
-
Q: Can I export sales data for multiple items at once?
A: You can export all item sales data without specifying the item ID.
-
Q: How can I import the exported sales data?
A: You can import the exported sales data into a spreadsheet program like Microsoft Excel or Google Sheets.
-
Q: What can I do with the imported sales data?
A: You can use the imported sales data to facilitate shipping, analyze sales trends, identify popular items, and track customer behavior.